﻿@using Telerik.Web.Mvc.UI;
@{
    List<IridiumTest.Models.Graphic> salida = (List<IridiumTest.Models.Graphic>)Session["_GraficoProbabilidad"];
}
@(
     Html.Telerik().Chart<IridiumTest.Models.Graphic>(salida)
     .Name("chart")
     .Title(title => title.Text("f(X) vs F(X)").Visible(true))
     .Legend(legend => legend.Position(ChartLegendPosition.Bottom).Visible(true))
     .SeriesDefaults(series => series.ScatterLine().Width(2))
     .Series(series =>
            {
             series
                 .Column(s => s.fx)
                 .Stack(true)
                 .Color("#13558E")
                 .Name("f(x)");
            series
                .Line(s=>s.Ac)
                .Color("#DE7E42")
                .Markers(markers => markers.Type(ChartMarkerShape.Circle))
                .Name("F(x)");
            })
    .CategoryAxis(axis => axis
            .Categories(s => s.N)
    .AxisCrossingValue(0, 100))
        .ValueAxis(axis => axis
            .Numeric()
                .Title("f(x)")
                .Min(0).Max(1)
                )
       .ValueAxis(axis => axis
            .Numeric()
                .Title("F(x)")
                .Min(0).Max(1))
)